package animal;

import ability.Ability;

public class Animal {
	String type;
	Ability[] activeAbil;
	Ability[] ofenAbil = new Ability[4];
	Ability[] defenAbil = new Ability[4];
	int animalID;
	int initStreng;
	int initVita;
	int initIntel;
	int initAgil;
	int initCrit;
	int initDoubleStrike;
	int initDodge;
	int myAnimalGrafik;
	int enemyAnimalGrafik;
	int staticAnimationMe;
	int staticAnimationEnemy;
	String panelBgLink;
	String GameImageLink;
	String animalStatsHtmlString;
	

	public int getStaticAnimationMe() {
		return staticAnimationMe;
	}
	public void setStaticAnimationMe(int staticAnimationMe) {
		this.staticAnimationMe = staticAnimationMe;
	}
	public int getStaticAnimationEnemy() {
		return staticAnimationEnemy;
	}
	public void setStaticAnimationEnemy(int staticAnimationEnemy) {
		this.staticAnimationEnemy = staticAnimationEnemy;
	}

	public String getAnimalStatsHtmlString() {
		return animalStatsHtmlString;
	}
	public void setAnimalStatsHtmlString(String animalStatsHtmlString) {
		this.animalStatsHtmlString = animalStatsHtmlString;
	}
	public int getMyAnimalGrafik() {
		return myAnimalGrafik;
	}
	public Animal getAnimalOverID(int ID) {
		if (ID == 2) {
			return new Adler();
		}
		if (ID == 1) {
			return new Elefant();
			}
		return null;
	}

	public void setMyAnimalGrafik(int myAnimal) {
		this.myAnimalGrafik = myAnimal;
	}

	public int getEnemyAnimalGrafik() {
		return enemyAnimalGrafik;
	}

	public void setEnemyAnimalGrafik(int enemyAnimal) {
		this.enemyAnimalGrafik = enemyAnimal;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setActivAbility(int i) {
		if (i == 1) {
			activeAbil = ofenAbil;
		} else if (i == 2) {
			activeAbil = defenAbil;
		}
	}
	
	public void addOfenAbility(Ability a, int index){
		ofenAbil[index] = a;
	}
	
	public void addDefenAbility(Ability a, int index){
		defenAbil[index] = a;
	}

	public Ability[] getActivAbility() {
		return activeAbil;
	}

	public Ability[] getOfenAbil() {
		return ofenAbil;
	}

	public void setOfenAbil(Ability[] a) {
		ofenAbil = a;
	}

	public Ability[] getDefAbil() {
		return defenAbil;
	}

	public void setDefAbil(Ability[] a) {
		defenAbil = a;
	}

	public int getAnimalID() {
		return animalID;
	}

	public void setAnimalID(int animalID) {
		this.animalID = animalID;
	}

	public int getInitCrit() {
		return initCrit;
	}

	public void setInitCrit(int initCrit) {
		this.initCrit = initCrit;
	}

	public int getInitDoubleStrike() {
		return initDoubleStrike;
	}

	public void setInitDoubleStrike(int initDoubleStrike) {
		this.initDoubleStrike = initDoubleStrike;
	}

	public int getInitDodge() {
		return initDodge;
	}

	public void setInitDodge(int initDodge) {
		this.initDodge = initDodge;
	}

	public int getInitStreng() {
		return initStreng;
	}

	public void setInitStreng(int initStreng) {
		this.initStreng = initStreng;
	}

	public int getInitVita() {
		return initVita;
	}

	public void setInitVita(int initVita) {
		this.initVita = initVita;
	}

	public int getInitIntel() {
		return initIntel;
	}

	public void setInitIntel(int initIntel) {
		this.initIntel = initIntel;
	}

	public int getInitAgil() {
		return initAgil;
	}

	public void setInitAgil(int initAgil) {
		this.initAgil = initAgil;
	}

	public String getPanelBgLink() {
		return panelBgLink;
	}

	public void setPanelBgLink(String panelBgLink) {
		this.panelBgLink = panelBgLink;
	}

	public String getGameImageLink() {
		return GameImageLink;
	}

	public void setGameImageLink(String gameImageLink) {
		GameImageLink = gameImageLink;
	}

}
